package com.valten.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 指定集合, 默认 article
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "article")
public class Article implements Serializable {
    private Long id;
    private String title;
    private String content;
    private Integer stars;
    private Date publicDate;
    private Long authorId;
}